var GPlusConnector = null;

_GPlusConnector = function(){
	this.ConnectorName = "GP";
}
_GPlusConnector.prototype = {
		Init: function(){
			this.Prerequired();
		},
		Prerequired: function(){
			var item = SocialConnectorManager.GetSocialConnectorItem();
			item.Name = this.ConnectorName;
			item.Status = true;
			item.UIStatus = false;
			item.PlaceholderRel = "GPlusConnector_placeholder";
			SocialConnectorManager.RegisterSocialConnectorItem(item);
			
			$("head").append("<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\">{lang: 'ru'}</script>");
		},
		GetPlusOneLayout: function(){
			var _html="<g:plusone annotation=\"inline\"></g:plusone>";
			return _html;
		},
		TogglePlaceHolder: function(){	
			SocialConnectorManager.ToggleSocialConnectorUI(this.ConnectorName);
		}
}